<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="BIG5"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<link rel="stylesheet" href="css/black-tie/jquery-ui-1.9.0.custom.css" type="text/css" />
<link rel="stylesheet" href="css/theme1.css" type="text/css" />
<link rel="stylesheet" href="css/style.css" type="text/css" />
<script type="text/javascript" src="js/jquery-1.8.2.js"></script>
<script type="text/javascript" src="js/jquery-ui-1.9.0.custom.js"></script>
<script type="text/javascript" src="js/common.js"></script>  
<!-- <script type="text/javascript" src='http://jqueryjs.googlecode.com/files/jquery-1.3.2.min.js'></script> -->
<!-- <script type="text/javascript" src='js/password_strength_plugin.js'></script>  -->
<script type="text/javascript" src="js/validation.js"></script>

<script>
$(document).ready(function() {

	//BASIC
	$(".password_test").passStrength({
		userid:"#user_id"
		});
	
	//ADVANCED
	$("#password").passStrength({
		shortPass:"top_shortPass",
		badPass:"top_badPass",
		goodPass:"top_goodPass",
		strongPass:"top_strongPass",
		baseStyle:"top_testresult",
		userid:"",
		messageloc:0
	});
});
</script>
</head>
<body>
	<jsp:include page="sections/header.jsp" />
	<div id="main">
		<div id="gallery" style="border: 0px; width: 400px;"></div>
		<div id="userRegForm">
			<form method="get" action="userRegistrationServlet" onsubmit="return validate_registration_form()">
				<h1>User Registration</h1>
				<table>
					<tr>
						<td align="right"><label>First Name : (*)</label></td>
						<td><input type="text" name="firstName" /></td>
						<td id="firstNameErrorMsg" class="errorMsg"></td>
					</tr>
					<tr>
						<td align="right"><label>Last Name : (*)</label></td>
						<td><input type="text" name="lastName" /></td>
						<td id="lastNameErrorMsg" class="errorMsg"></td>
					</tr>
					<tr>
						<td align="right"><label>E-mail Address : (*)</label></td>
						<td><input type="text" name="eMail" /></td>
						<td id="eMailErrorMsg" class="errorMsg"></td>
					</tr>
					<tr>
						<td align="right"><label>Password : (*)</label></td>
						<td><input type="password" name="password" id="password" /></td>
						<td id="passwordErrorMsg" class="errorMsg"></td>
					</tr>
					<tr>
						<td align="right"><label>Confirm Password : (*)</label></td>
						<td><input type="password" name="rePassword" /></td>
						<td id="rePasswordErrorMsg" class="errorMsg"></td>
					</tr>
					<tr>
						<td align="right"><label>Phone Number :</label></td>
						<td><input type="text" name="phoneNumber" /></td>
						<td id="phoneNumberErrorMsg" class="errorMsg"></td>
					</tr>
					<tr>
						<td align="right"><label>Address :</label></td>
						<td><input type="text" name="address" /></td>
						<td id="addressErrorMsg" class="errorMsg"></td>
					</tr>
					<tr>
						<td align="right"><label>Credit Card Number : (*)</label></td>
						<td><input type="text" name="creditCardNo" /></td>
						<td id="creditCardNoErrorMsg" class="errorMsg"></td>
					</tr>
					<tr>
						<td align="right"><label>Credit Card Expiry : (*)</label></td>
						<td><input type="text" id="datepicker" name="cardExpiry" /></td>
						<td id="cardExpiryErrorMsg" class="errorMsg"></td>
					</tr>
					<tr>
						<td><input type="submit" id="userRegSubmitButton" class="submitButt" value="Submit" /></td>
						<td><input type="reset" id="userRegResetButton" class="resetButt" value="Reset" /></td>
					</tr>
				</table>
			</form>
		</div>
	</div>
</body>
</html>